Authorization Manager
Lets the application authorize and deauthorize Mobile Payments SDK to collect payments on behalf of a Square location.
Properties
Snapshot of the current authorization state. The returned AuthorizationState is immutable and is NOT modified if the state changes. If you are looking for a way to track AuthorizationState, register a callback with setAuthorizationStateChangedCallback.
Snapshot of the AuthorizedLocation if Mobile Payments SDK is currently authorized. AuthorizedLocation is null
if not authorized.
Functions
Asynchronously authorizes Mobile Payments SDK with an OAuth Access Token and Location ID. Applications must authorize Mobile Payments SDK before performing any other operations.
Deauthorizes Mobile Payments SDK. Has no effect if the SDK is already in a deauthorized state.